﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UniversaleMain.Master" AutoEventWireup="true" CodeBehind="SearchList.aspx.cs" Inherits="FYPDemo.SearchList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
    .searchtitle
    {
        margin:15px 0;
        font-weight:bold;
    }
    .searchcontent
    {
        margin:10px 50px;
    }

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <h1 class="h1_title">Search List</h1>
    
    <div  class="searchtitle">
        <asp:Label ID="lblMember" runat="server" Text="Member"></asp:Label>
    </div>

    <div>
      <asp:GridView ID="SearchMemberGrid" runat="server" AllowPaging="True" 
          AutoGenerateColumns="False" PageSize="5" DataKeyNames="Name" 
            onselectedindexchanged="searchMemberGrid_SelectedIndexChanged"
            onpageindexchanging="searchMemberGrid_PageIndexChanging" CellPadding="4" 
            ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <Columns>    
                <asp:TemplateField HeaderText="Image">
                    <ItemTemplate>
                        <asp:Image ID="DisplayPicture" runat="server" ImageUrl='<%#Eval("ImagePath") %>' Height="50px" Width="50px" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Vendor">
                    <ItemTemplate>                        
                        <asp:LinkButton ID="lbName" runat="server" CommandArgument="ID" CommandName="Select" Text='<%#Bind("Name") %>' Width="500px" CssClass="txt_left"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
             </Columns>
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F8FAFA" />
            <SortedAscendingHeaderStyle BackColor="#246B61" />
            <SortedDescendingCellStyle BackColor="#D4DFE1" />
            <SortedDescendingHeaderStyle BackColor="#15524A" />
          </asp:GridView>  
    </div>

    <div id="MemberText" runat="server" style="display:none">
        <asp:Label ID="lblMemberText" runat="server" CssClass="searchcontent" Text="No record found."></asp:Label>
    </div>

    <div class="searchtitle">
        <asp:Label ID="lblProduct" runat="server" Text="Product" ></asp:Label>
    </div>
    <div>
      <asp:GridView ID="searchProductGrid" runat="server" AllowPaging="True" 
          AutoGenerateColumns="False" PageSize="5" DataKeyNames="ProductID" 
            onselectedindexchanged="searchProductGrid_SelectedIndexChanged"
            onpageindexchanging="searchProductGrid_PageIndexChanging" CellPadding="4" 
            ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <Columns>    
                <asp:TemplateField HeaderText="Image">
                    <ItemTemplate>
                        <asp:Image ID="DisplayPicture" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Product Name">
                    <ItemTemplate>                        
                        <asp:LinkButton ID="lbProdName" runat="server" CommandArgument="ID" CommandName="Select" Text='<%#Bind("ProductName") %>' Width="500px" CssClass="txt_left"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
             </Columns>
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F8FAFA" />
            <SortedAscendingHeaderStyle BackColor="#246B61" />
            <SortedDescendingCellStyle BackColor="#D4DFE1" />
            <SortedDescendingHeaderStyle BackColor="#15524A" />
          </asp:GridView>  
    </div>

    <div id="productText" runat="server" style="display:none">
        <asp:Label ID="lblProductText" runat="server" CssClass="searchcontent" Text="No record found."></asp:Label>
    </div>
</asp:Content>
